/**
 * Copyright © 2017 sdjictec.Co.Ltd. All rights reserved.
 **/

package com.sdjictec.haier.entity;


import java.sql.Timestamp;
import java.util.Date;

public class RetailDataMQ2 {

    //单据唯一编码
    private String billUniCode;
    //主售达方编码
    private String spCode;
    //门店唯一码
    private String shUniCode;
    //海尔门店唯一码.此码从bvs.ods_estore_cust_entity中取出
    private String storeUniCode;
    //门店名称
    private String shName;
    //门店地址
    private String shAddress;
    //门店联系人
    private String shLinkMan;
    //单据类型编码
    private String billTypeCode;
    //生成单据时间yyyy-mm-dd hh24:mi:ss
    private Timestamp orderDate;
    //商品编码
    private String productCode;
    //商品数量
    private Integer amount;
    //品牌编码
    private String brandCode;

    //销售中心
    private String orgCode;

    //销售中心名称
    private String orgName;

    //区域供价
    private Double ibPrice;

    //产品大类
    private String department;


    //门店中心（工贸编码）
    private String tmcshMktid;

    //渠道
    private String tmcshMainchannel;


    //入库时间
    private Date tx_dt = new Date();


    public Date getTx_dt() {
        return tx_dt;
    }

    public void setTx_dt(Date tx_dt) {
        this.tx_dt = tx_dt;
    }

    public RetailDataMQ2() {
    }

    public RetailDataMQ2(RetailDataMQ retailDataMQ) {
        this.billUniCode = retailDataMQ.getBillUniCode();
        this.spCode = retailDataMQ.getSpCode();
        this.shUniCode = retailDataMQ.getShUniCode();
        this.storeUniCode = retailDataMQ.getStoreUniCode();
        this.shName = retailDataMQ.getShName();
        this.shAddress = retailDataMQ.getShAddress();
        this.shLinkMan = retailDataMQ.getShLinkMan();
        this.billTypeCode = retailDataMQ.getBillTypeCode();
        this.orderDate = retailDataMQ.getOrderDate();
        this.productCode = retailDataMQ.getProductCode();
        this.amount = retailDataMQ.getAmount();
        this.brandCode = retailDataMQ.getBrandCode();
        if (retailDataMQ.getOrgCode() != null) {
            this.orgCode = retailDataMQ.getOrgCode();
        }

        if (retailDataMQ.getOrgName() != null) {

            this.orgName = retailDataMQ.getOrgName();
        }

        if (retailDataMQ.getIbPrice() != null) {
            this.ibPrice = retailDataMQ.getIbPrice();
        }

        if (retailDataMQ.getDepartment() != null) {

            this.department = retailDataMQ.getDepartment();
        }

        if (retailDataMQ.getTmcshMktid() != null) {
            this.tmcshMktid = retailDataMQ.getTmcshMktid();
        }

        if (retailDataMQ.getTmcshMainchannel() != null) {

            this.tmcshMainchannel = retailDataMQ.getTmcshMainchannel();
        }

    }


    public String getTmcshMktid() {
        return tmcshMktid;
    }

    public void setTmcshMktid(String tmcshMktid) {
        this.tmcshMktid = tmcshMktid;
    }

    public String getTmcshMainchannel() {
        return tmcshMainchannel;
    }

    public void setTmcshMainchannel(String tmcshMainchannel) {
        this.tmcshMainchannel = tmcshMainchannel;
    }

    public Timestamp getOrderDate() {
        return orderDate;
    }

    public void setOrderDate(Timestamp orderDate) {
        this.orderDate = orderDate;
    }

    public String getOrgCode() {
        return orgCode;
    }

    public void setOrgCode(String orgCode) {
        this.orgCode = orgCode;
    }

    public String getOrgName() {
        return orgName;
    }

    public void setOrgName(String orgName) {
        this.orgName = orgName;
    }

    public String getDepartment() {
        return department;
    }

    public void setDepartment(String department) {
        this.department = department;
    }

    public Double getIbPrice() {
        return ibPrice;
    }

    public void setIbPrice(Double ibPrice) {
        this.ibPrice = ibPrice;
    }

    public String getStoreUniCode() {
        return storeUniCode;
    }

    public void setStoreUniCode(String storeUniCode) {
        this.storeUniCode = storeUniCode;
    }

    public String getBillUniCode() {
        return billUniCode;
    }

    public void setBillUniCode(String billUniCode) {
        this.billUniCode = billUniCode;
    }

    public String getSpCode() {
        return spCode;
    }

    public void setSpCode(String spCode) {
        this.spCode = spCode;
    }

    public String getShUniCode() {
        return shUniCode;
    }

    public void setShUniCode(String shUniCode) {
        this.shUniCode = shUniCode;
    }

    public String getShName() {
        return shName;
    }

    public void setShName(String shName) {
        this.shName = shName;
    }

    public String getShAddress() {
        return shAddress;
    }

    public void setShAddress(String shAddress) {
        this.shAddress = shAddress;
    }

    public String getShLinkMan() {
        return shLinkMan;
    }

    public void setShLinkMan(String shLinkMan) {
        this.shLinkMan = shLinkMan;
    }

    public String getBillTypeCode() {
        return billTypeCode;
    }

    public void setBillTypeCode(String billTypeCode) {
        this.billTypeCode = billTypeCode;
    }


    public String getProductCode() {
        return productCode;
    }

    public void setProductCode(String productCode) {
        this.productCode = productCode;
    }

    public Integer getAmount() {
        return amount;
    }

    public void setAmount(Integer amount) {
        this.amount = amount;
    }

    public String getBrandCode() {
        return brandCode;
    }

    public void setBrandCode(String brandCode) {
        this.brandCode = brandCode;
    }

    @Override
    public String toString() {
        return "RetailDataMQ{" +
                "billUniCode='" + billUniCode + '\'' +
                ", spCode='" + spCode + '\'' +
                ", shUniCode='" + shUniCode + '\'' +
                ", storeUniCode='" + storeUniCode + '\'' +
                ", shName='" + shName + '\'' +
                ", shAddress='" + shAddress + '\'' +
                ", shLinkMan='" + shLinkMan + '\'' +
                ", billTypeCode='" + billTypeCode + '\'' +
                ", orderDate=" + orderDate +
                ", productCode='" + productCode + '\'' +
                ", amount=" + amount +
                ", brandCode='" + brandCode + '\'' +
                ", orgCode='" + orgCode + '\'' +
                ", orgName='" + orgName + '\'' +
                ", ibPrice=" + ibPrice +
                ", department='" + department + '\'' +
                ", tmcshMktid='" + tmcshMktid + '\'' +
                ", tmcshMainchannel='" + tmcshMainchannel + '\'' +
                '}';
    }
}
